package com.mac.hosp_pre.admin.feign;

import com.mac.hosp_pre.admin.dto.ScheduleOrderRespDto;
import com.mac.hosp_pre.reply.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "hosp-admin-service",contextId = "HospitalFeignClient")
public interface HospitalFeignClient {

    @GetMapping("/api/hosp/hospital/getScheduleOrder/{scheduleId}")
    R<ScheduleOrderRespDto> getScheduleOrder(@PathVariable("scheduleId") String scheduleId);
}
